<div ng-controller="replyListCtrl">
    <!--不能写两个ng-controller:questionListCtrl，否则会导致不能传递参数-->
    <!--相同的ng-controller的操作应该放在同一个div下-->

    <form class="form-inline" role="form">
        <div class="input-group">
            <label class="control-label">回复关键词：</label>
            <!--ng-model应该进行初始化，否则值为undefined会导致出错-->
            <input type="text" class="form-control" placeholder="回复关键词" ng-model="reply.key" ng-init="reply.key=''">
        </div><br>

        <div class="control-group">
            <div class="controls">
                <button type="submit" class="btn btn-sm" ng-click="searchReply(reply)" >搜索</button>
            </div>
        </div>
    </form>

    </br>
    </br>
    <ul class="nav nav-tabs">
        <li class="active"><a href="#tab_a" data-toggle="tab">问题</a></li>
    </ul>
    <div class="tab-content">
        <div class="tab-pane active" id="tab_a">
            <table class="table table-condensed" width="">
                <thead>
                <tr>
                    <th>显示顺序<!--displayOrder--></th>
                    <th>回复状态<!--replyStatus--></th>
                    <th>回复描述<!--replyDesc--></th>
                    <!--<th>图片&lt;!&ndash;images&ndash;&gt;</th>-->
                    <!--<th>回复类型&lt;!&ndash;replyType&ndash;&gt;</th>-->
                    <th>是否有效<!--isValid--></th>
                    <th>回复者<!--repliedBy--></th>
                    <th>回复日期<!--dateReplied--></th>
                </tr>
                </thead>
                <tbody>
                <tr ng-repeat="reply in replyList.data">
                    <td>{{reply.displayOrder}}</td>
                    <td>{{reply.replyStatus}}</td>
                    <td>{{reply.replyDesc}}</td>
                    <!--<td>{{reply.images}}</td>-->
                    <!--<td>{{reply.replyType}}</td>-->
                    <td>{{reply.isValid}}</td>
                    <td>{{reply.repliedBy.nickName}}</td>
                    <td>{{reply.dateReplied}}</td>

                    <td>
                        <a class="btn btn-danger btn-xs"  ng-click="deleteReply(reply.objId)">删除</a>
                    </td>
                    <td>
                        <input type="text" class="form-control" placeholder="顺序" ng-model="reply.order" ng-init="reply.order='0'">
                        <a class="btn btn-danger btn-xs"  ng-click="changeReplyOrder(reply)">修改顺序</a>
                    </td>
                </tr>
                </tbody>
            </table>

        </div>

    </div>

</div>